<%@page import="com.netistate.pojo.Project"%>
<%@page import="java.text.SimpleDateFormat"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<div class="minWin">
	<table id="" width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="bg_color_common" style="font-size: 12">
		
		<tr>
			<td align="right" title="产品名称及型号">请选择项目:</td>
			<td>
				<select style="width: 140px;" name="pid" id="pid">
					<option value="" title="请选择一个项目">请选择一个项目</option>
				  <% List<Project> projectList = (List<Project>)request.getSession().getAttribute("SQProjectList");
					 for(Project p : projectList){%>
					<option value="<%=p.getId() %>" title="<%=p.getProjectName() %>"><%=p.getProjectName() %></option>
					<%} %>
				</select>
			</td>
		</tr>
		<tr>
			<td align="right" title="Demo机型号">Demo机型号:</td>
			<td><input id="model" class="" name="model" style="width:250px;" /></td>
		</tr>
		<tr>
			<td align="right" title="序列号">序列号:	</td>
			<td><input id="seqNo" name="seqNo" style="width:250px;" /></td>
		</tr>
		
		<tr>
			<td align="right" title="License截止日期">License截止日期:</td>
		    	<td>
					<%
				       Date date = new Date();
				       SimpleDateFormat sdFormat = new SimpleDateFormat("yyyy-MM-dd");
					   String dates = sdFormat.format(date);
					%>
					<input id="license" name="starttime" type="text" style="width:80px" onclick="MyCalendar.SetDate(this)" value="<%=dates %>" readonly="readonly" />
		</tr>
		
		<tr>
			<td align="right" title="Demo机所在处">Demo机所在处:</td>
			<td><input id="demoAddress" name="demoAddress" style="width:250px;" /></td>
		</tr>
		
		<tr>
			<td align="right" title="节点数">节点数:</td>
			<td>
				<input id="nodes" value="20" name="nodes"  />
				<span style="color:red">*</span>
			</td>
		</tr>
		
		<tr>
			<td align="right" title="模块">模块:</td>
			<td>
				<select id="addModule" name="module" onchange="changeModule()">				
					<option value="默认模块">默认模块</option>
					<option value="定制模块" onclick="showModule()">定制模块</option>
				</select>
				<input type="text" id="defaultModule" value="所有模块" style="display:none;width:250px;" />
				<input type="text" id="customModule" value="模块之间用','分隔" style="display:none;width:250px;" />
			</td>
		</tr>

		<tr>
			<td align="right" title="硬件提供商">Demo机硬件提供商:</td>
			<td>
				<select id="hardwareSource" name="hardwareSource">				
					<option value="1U_3710">1U_3710</option>
					<option value="1U_5400">1U_5400</option>
					<option value="2U_6840">2U_6840</option>
					<option value="2U_CAR3002C">2U_CAR3002C</option>
					<option value="宝德单路服务器">宝德单路服务器</option>
				</select>
			</td>
		</tr>	
		
		<tr>
			<td align="right" title="Demo机硬件配置">Demo机硬件配置:</td>
			<td><textarea rows="6" cols="35" name="productConfig" id="productConfig"></textarea></td>
		</tr>		
		
		<tr>
			<td align="right" title="备注">备注:</td>
			<td><textarea rows="6" cols="35" name="note" id="note"></textarea></td>
		</tr>
		
	</table>
</div>